package br.com.techfor.util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;

/**
 * 
 * @author alex.amaral
 * 
 */

public class HibernateUtil {

	private static final SessionFactory factory;
	public static final String HIBERNATE_SESSION = "HibernateSession";

	static {

		AnnotationConfiguration acg = new AnnotationConfiguration();
		acg.configure();
		factory = acg.buildSessionFactory();

	}

	public static SessionFactory getSessionFactory() {
		return factory;
	}

}
